package com.javasm.gm;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.javasm.gg.Goods;

import java.io.Serializable;
@TableName("gm_gift")
public class Gift implements Serializable {
    @TableId(type = IdType.AUTO)
    private Integer id;//赠品id
    private Integer goodsId;
    private Integer giftStock;
    private String createTime;
    private String updateTime;
    @TableField(exist = false)
    private Goods goods;

    public Goods getGoods() {
        return goods;
    }

    public void setGoods(Goods goods) {
        this.goods = goods;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(Integer goodsId) {
        this.goodsId = goodsId;
    }

    public Integer getGiftStock() {
        return giftStock;
    }

    public void setGiftStock(Integer giftStock) {
        this.giftStock = giftStock;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(String updateTime) {
        this.updateTime = updateTime;
    }
}